package cn.ording.entity;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;


/**
 * Ordering entity. @author MyEclipse Persistence Tools
 */

public class Ordering  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private User user;
     private TTable TTable;
     private Timestamp time;
     private Integer person;
     private Double sum;
     private Set foodOrders = new HashSet(0);
     private Set rushfoods = new HashSet(0);


    // Constructors

    /** default constructor */
    public Ordering() {
    }

	/** minimal constructor */
    public Ordering(TTable TTable, Timestamp time, Integer person, Double sum) {
        this.TTable = TTable;
        this.time = time;
        this.person = person;
        this.sum = sum;
    }
    
    /** full constructor */
    public Ordering(User user, TTable TTable, Timestamp time, Integer person, Double sum, Set foodOrders, Set rushfoods) {
        this.user = user;
        this.TTable = TTable;
        this.time = time;
        this.person = person;
        this.sum = sum;
        this.foodOrders = foodOrders;
        this.rushfoods = rushfoods;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public User getUser() {
        return this.user;
    }
    
    public void setUser(User user) {
        this.user = user;
    }

    public TTable getTTable() {
        return this.TTable;
    }
    
    public void setTTable(TTable TTable) {
        this.TTable = TTable;
    }

    public Timestamp getTime() {
        return this.time;
    }
    
    public void setTime(Timestamp time) {
        this.time = time;
    }

    public Integer getPerson() {
        return this.person;
    }
    
    public void setPerson(Integer person) {
        this.person = person;
    }

    public Double getSum() {
        return this.sum;
    }
    
    public void setSum(Double sum) {
        this.sum = sum;
    }

    public Set getFoodOrders() {
        return this.foodOrders;
    }
    
    public void setFoodOrders(Set foodOrders) {
        this.foodOrders = foodOrders;
    }

    public Set getRushfoods() {
        return this.rushfoods;
    }
    
    public void setRushfoods(Set rushfoods) {
        this.rushfoods = rushfoods;
    }
   








}